﻿using BasicInformation.ErrorCode;
using MediatR;

namespace BasicInformation.ApiWrite.Application.Command.Device
{
    /// <summary>
    /// 设备管理请求类
    /// </summary>
    public class AddDeviceCommand : IRequest<ApiResult<int>>
    {
        /// <summary>
        ///设备编号(自动生产)
        /// </summary>
        public string DeviceCode { get; set; }
        /// <summary>
        /// 设备名称
        /// </summary>
        public string DeviceName { get; set; }
        /// <summary>
        /// 是否授权
        /// </summary>
        public bool IsActive { get; set; }
        /// <summary>
        /// 授权标识符
        /// </summary>
        public string ActiveCode { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public bool DeviceState { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string? DeviceRemark { get; set; }
    }
}
